//
// Created by hsj on 2022/3/10.
//

#include "t_functional.h"
namespace t_functional_test{
    void test(){
        plus<int> add;
        int z = add(18,2);
        cout<<z<<endl;

        multiplies<int> muitip;
        z = muitip(18,2);
        cout<<z<<endl;

        divides<int> divid;
        z = divid(18,2);
        cout<<z<<endl;

        minus<int> minu;
        z = minu(18,2);
        cout<<z<<endl;

        modulus<int> modulu;
        z = modulu(19,2);
        cout<<z<<endl;

        negate<int> negat;
        z = negat(18);
        cout<<z<<endl;
    }
}